<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>



		<script type="text/javascript">
			
			
			
		</script>
	</body>
</html>
<!-- 
 //第1题
  console.log(a); 
  
  var a=12; 
  
 function fn(){
 		console.log(a);
         var a=13;	
 	}  
  
 fn();   
  
 console.log(a);  
  
  
 //第2题
 console.log(a);  
  
 var a=12;
 function fn(){
 		console.log(a);
         a=13;
 	}	
 	
 fn();
 console.log(a); 
  
  
 //第3题
 console.log(a); 
     a=12;
 function fn(){
 		console.log(a);
 		a=13;	
 	}	
 	
 fn();
 console.log(a);  
  
  
 //第4题
 var foo=1;  
  
 function bar(){
        if(!foo){
            var foo=10; 
        }
        console.log(foo); 
    }
    
 bar(); 
  
  
 //第5题
 var n=0;  
   
  function a(){
 	  var n=10; 
 	  function b(){
 		  n++; 
           console.log(n);       
       }
 	  b();
       return b; 
  }
  
 var c=a();
 c(); 
 console.log(n);  
  
  
 //第6题
 var a=10,b=11,c=12;
    
 function test(a){
         a=1;var b=2;c=3;
    }  
  
 test(10);
 console.log(a);  console.log(b);   console.log(c); 
  
 //第7题
 if(!("a" in window)){   
       var a=1;
    }
  
 console.log(a);  
  
 //第8题
 var a=4;  
  
    function b(x,y,a) {	   
         console.log(a); 
         arguments[2]=10;        
         console.log(a); 
    }
  
 a=b(1,2,3);   
 console.log(a); 
  
  
 //第9题
 var foo='hello';  
  
    (function(foo){
       console.log(foo);
       var foo = foo ||'world';
       console.log(foo);
    })(foo);
  
 console.log(foo); 
  
 //第10题
 var a=9;  
  
 function fn(){ 
 	   a=0; 	   
        return function(b){ return b+a++; }    
     }
  
 var f=fn()
 var m=f(5);
 console.log(m);
 var n=fn()(5);
 console.log(n); 
 var x=f(5);
 console.log(x);
//第十一题
var n = 10;
function outer() {
	var n = 15;

	function inner() {
		function center() {
			console.log(n)
		}
		center()
	}
	inner();
}
outer();
//第十二题
var n = 0;

function a() {
	var n = 10;

	function b() {
		n++;
		console.log(n)
	}
	b();
}
a();
console.log(n)
//第十三题
var n = 0;

function b() {
	n++;
	console.log(n);
}

function a() {
	var n = 10;
	b();
}
b();
a();
console.log(n);
//第十四题
f = function() {
	return true
};
g = function() {
	return false
};
(function() {
	undefined
	console.log(g);
	if (g() && [] == ![]) {
		undefined
		f = function f() {
			return false
		};

		function g() {
			return true
		};
	}
})();
console.log(f());
console.log(g())
  
  
 
 
 
 -->